<?php
/**
 * 分类下属品牌block文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	product
 */
if (is_object($objWebInit)) {
	if(!isset($objproduct)){
		include_once(__WEB_ROOT.'/product/class/product.class.php');
		include_once(__WEB_ROOT.'/product/config/var.inc.php');
		$objproduct =& new product();
		$objproduct->setDBG($arrGPdoDB);
		if(is_object($objWebInit->db)) $objproduct->db = $objWebInit->db;
		else $objproduct->db();
	}

	$arrTopInfo = array();

	if(empty($intTypeID)){//分类为空
		$arrTopInfo = array(0=>array('id'=>$arrInfoList[0]['brand_id'],'title'=>$arrInfoList[0]['brand'],'brand_initial'=>$arrInfoList[0]['brand_initial'],'nums'=>$intRows));
	}else{
		$arrTopInfo = $objproduct->getBrandWithProductType($_GET['type_id']);
	}

	// 输出到模板
	$arrMOutput["smarty_assign"]['arrChildBrand'] = $arrTopInfo;
}
?>